<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
  <div style="background-color:rgb(102,102,102); border:0; width:100%; height:80px;">
    <div class="head" id="head">
    	<div id="webbei_logol">
        	<img src="img/logo.gif" alt="" title="标识"/>
        </div>
        <div class="usercando">
        	<div class="usercando_dingzhi" id="usercando_dingzhi">
            	<a href="custom.aspx" target="_blank"><img src="img/head_custom.gif" alt="" title="定制" id="user_dingzhi"/></a>
                <div style="position:absolute; top:60px; z-index:1; left:50px; display:none;" id="test">
                    <ul><!--这样是可以读写进来的-->
                    	<c:forEach items="${applicationScope.product}" var="p">
                    		<li><a href="showCustom.action?productId=${p.productId }">${p.productName }</a></li>
                    	</c:forEach>
                    </ul>
                </div>
            </div>
            <div class="usercando_share">
            	<a href="share.aspx" target="_blank"><img src="img/head_share.gif" alt="" title="分享" id="user_share"/></a>
                <div style="position:absolute; top:50px; left:-100px;">
                    <ul>
                    </ul>
                </div>
            </div>
        </div>
        <div class="search" id="search">
        	<div style="width:100%; height:35px; padding-top:10px;" id="showusersName">
            </div>
            <div style="padding-top:0px;">
            	<div style="float:left;">
        		<input type="text" value="" id="searchsomething" /></div>
                <div style="float:left;">
            	<a href=""><img src="img/head_search_bt.gif" style="width:30px;height:20px;" alt="" title="查询"/></a></div>
            </div>
        </div>
        <div class="something_else">
        	<div class="something_else_up">
            	<div style="width:90px; float:left; padding-top:7px; padding-left:30px;font-size:14px;">
            		&nbsp;<!--<a href="">转</a>-->
                	&nbsp;<a href="">加关注</a>
                </div>
                <div style="width:100px; float:left; padding-top:2px; padding-left: 10px;">
                	<a href=""><img src="img/login_txwb.png" alt="" title="腾讯微博" style="width:20px;height:20px;"/></a>
                	<a href=""><img src="img/login_rr.png" alt="" title="人人网" style="width:20px;height:20px;"/></a>
                	<a href=""><img src="img/login_db.png" alt="" title="豆瓣" style="width:20px;height:20px;"/></a>
                </div>
            </div>
            <script type="text/javascript">
                $(document).ready(function () {
                    $.post("../ashxfile/LoadUsersName.ashx", {}, function (data) {
                        if (data != "false") {
                            //$("#login_btn").html("欢迎您：");
                            //$("#resign_btn").html(data);
                            //$("#login_btn").attr('display', 'none');
                            //$("#resign_btn").attr('display', 'none');
                            $(".loginandresign").hide();
                            $("#showusersName").html("欢迎你：" + "<a href='my_order_mydesign.aspx?usersname=" + data + "'>" + data + "</a>");
                        }
                        else {

                        }
                    });
                });
            </script>
            <div class="something_else_down">
            	<div style="width:125px; float:left; padding-top:5px; padding-left:10px;">
                	<div style="float:left;">
                		<img src="img/head_cart.gif" alt="" title=""/>
                    </div>
                    <div style="float:left; height:20px; padding-top:5px;font-size:12px;">
                    	&nbsp;购物车(<a href="">2</a>)
                    </div>
                </div>
                <div class="loginandresign">
                	<div id="login_btn" style="float:left; cursor:pointer; font-size:13px;">登陆</div>
                <a href="register.jsp" ><div id="resign_btn" style="float:left; cursor:pointer;font-size:13px;">|注册</div></a>
                    <div id="login_level">
                    <form action="login"  method="post" >
                	    <div class="login_level_email">
    					    邮箱：<input type="text" id="email" name="mail"/>
    				    </div>
    				    <div class="login_level_email">
    					    密码：<input type="password" id="pwd"  name="password"/>
    				    </div>
    				    <div class="remember_pwd">
    					    <input type="checkbox" id="checkbox"  name="jizhu" value="cheng"/>
        				    记住密码&nbsp;&nbsp;<a href="findpassword.jsp" style="font-size:12px;">忘记密码？</a><input type="submit" value="登录" id="login"/>
        				    </form>
    				    </div>
    				    <div class="more_loginway">
    					    <img src="img/login_qq.png" alt="" title="QQ"/>
        				    <img src="img/tianya.png" alt="" title="天涯"/>
       				 	    <img src="img/twitter.png" alt="" title="推特"/>
        				    <img src="img/tuita.png" alt="" title="推他"/>
        				    <img src="img/msn.png" alt="" title="MSN"/>
        				    <img src="img/souhuweibo.png" alt="" title="搜狐微博"/>
        				    <img src="img/qiyiqitan.png" alt="" title="奇异奇谈"/>
        				    <img src="img/more.png" id="moreway" alt="" title="更多"/>
    				    </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
